package com.jsyl.lwbk.web.controller.business;

import com.jsyl.lwbk.business.service.ChildProjectConfigService;
import com.jsyl.lwbk.common.core.controller.BaseController;
import com.jsyl.lwbk.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 训练计划
 */
@Controller
@RequestMapping("/business/childProjectConfig")
public class ChildProjectConfigController extends BaseController {


    @Autowired
    ChildProjectConfigService childProjectConfigService;

    /**
     *保存项目训练量
     *
     * @return
     */
    @GetMapping("/getProjectReplaceTimes")
    @ResponseBody
    public AjaxResult getProjectReplaceTimes(@RequestParam("childId")Long childId,
                                             @RequestParam("projectCode")String projectCode) {
        return success(childProjectConfigService.getProjectReplaceTimes(childId,projectCode));
    }







}
